<?php

		$img=new \Common\Model\GetImg;

		$i=$img->get();

	?>

<!doctype html>

<html>

<head>

<meta charset="utf-8">

<title>个人博客</title>

<meta name="keywords" content="" />

<meta name="description" content="" />

<link href="./Public/Home/css/base.css" rel="stylesheet">

<link href="./Public/Home/css/index.css" rel="stylesheet">

<script type="text/javascript" src="./Public/Home/js/jquery.min.js"></script>

<script type="text/javascript" src="./Public/Home/js/sliders.js"></script>

<!--[if lt IE 9]>

<script src="js/modernizr.js"></script>

<![endif]-->

<!-- 返回顶部调用 begin -->

<script type="text/javascript" src="./Public/Home/js/up/jquery.js"></script>

<script type="text/javascript" src="./Public/Home/js/up/js.js"></script>
<script src="http://libs.baidu.com/jquery/2.0.0/jquery.min.js"></script>

<!-- 返回顶部调用 end-->

</head>

<body style="background: url('./Public/Home/images/body_bg_new3.jpg') no-repeat; ">

<script type="text/javascript">
$(function(){
    var shortName = "rlj";
    var a = <?php echo json_encode($x); ?>;
 var numa =0  
    for(var n=0;n<a.length;n++){
    	$.ajaxSettings.async = false;
    	var jsonUrl = "http://api.duoshuo.com/threads/counts.jsonp?short_name=" + shortName + "&threads=" + a[n] +  "&callback=?";
    	  $.getJSON(jsonUrl, function(result) {
	        $.each(result.response, function(i, field) {
	            var value = field.comments;
	            
	            $('.num').eq(numa).text(value);
	            numa++;
	            
	        })
    	})
   	}
    
})
</script>

{{include file="../Common/header"}}

<article>

  <div class="l_box f_l">

  	

    <div class="banner">

      <div id="slide-holder">	

        <div id="slide-runner">

        	<a href="https://www.baidu.com/" target="_blank">

        		{{foreach from="$i" value="$k"}}

        		<img id="slide-img-{{$k['id']}}" src="{{$k['url']}}"  alt="" />

        		{{endforeach}}

        	</a>

          <div id="slide-controls">

            <p id="slide-client" class="text"><strong></strong><span></span></p>

            <p id="slide-desc" class="text"></p>

            <p id="slide-nav"></p>

          </div>

        </div>

      </div>

      <script>

	  if(!window.slider) {

		var slider={};

	}

	slider.data= [

    {

        "id":"slide-img-1", // 与slide-runner中的img标签id对应

        "client":"听幽兰",

        "desc":"那个在不经意中，也许就改变了我一生的男孩。" //这里修改描述

    },

    {

        "id":"slide-img-2",

        "client":"木吉他的夏天",

        "desc":"不要轻易用过去来衡量生活的幸与不幸"

    },

    {

        "id":"slide-img-3",

        "client":"按时长大",

        "desc":"我一直喜欢下午的阳光。"

    },

    {

        "id":"slide-img-4",

        "client":"我要我们在一起",

        "desc":"喜欢的歌静静地听，喜欢的人远远地看。 "

    } 

	];



	  </script> 

	  <!--文章内容部分-->

    </div>



    <!-- banner代码 结束 -->

    <div class="topnews">

      <h2>

      	<span>

	      		</span>

	      		<b>文章</b>推荐

      	</h2>

      {{foreach from="$data" value="$dv"}}

      <div class="blogs">

        <figure><img src="{{$dv['thumb']}}"></figure>

        <ul>

	          <h3>

	          	<a href="Content_{{$dv['aid']}}.html" target="_blank">{{$dv['title']}}</a>

	          </h3>

          <p>

          	{{$dv['digest']}}

          </p>

          <p class="autor">

          	<span class="lm f_l">

          	{{foreach from="$dv['tag']" value='$ccc'}}

          		<a href="list_{{$ccc['tid']}}.html" >{{$ccc['tname']}}</a>

          	{{endforeach}}

          	</span><span class="dtime f_l">{{date('Y-m-d',$dv['sendtime'])}}</span>

          	<span class="viewnum f_r">浏览（<a href="javascript:;">{{$dv['click']}}</a>）</span>

          	<span class="pingl f_r">评论（<a href="javascript:;" class="num"></a>）</span>

          </p>

        </ul>

      </div>

      {{endforeach}}

    </div>

  </div>

  <!--文章内容结束-->

  {{include file="../Common/right"}}

  <!--r_box end --> 

</article>

{{include file="../Common/foot"}}

</body>

</html>

